package com.kgc.service;

import com.github.pagehelper.PageInfo;
import com.kgc.entity.Order;
import com.kgc.entity.OrderDetail;

import java.util.Map;

/**
 * @author :qinya
 * @PackageName:com.kgc.service
 * @ClassName: OrderServiceImpl
 * @Description: TODO
 * @date : 2025/5/23,11:39
 */
public interface OrderService {
    PageInfo<Order> selectByPage(Map<String, Object> params);

    //支付
    boolean orderPay(Map<String, Object> params);

    //退款
    boolean orderRefund(String serialNumber);

    //关闭
    boolean closeOrder(String serialNumber);

    //删除
    boolean delOrder(int id);

    //修改库存
    boolean changeStock(int orderId, String flag);

    //根据订单号查订单
    Order selectBySerialNumber(String serialNumber);

    //添加订单
    boolean addOrder(Order order);

    //订单明细
    boolean addOrderDetail(OrderDetail orderDetail);

}
